package com.qf.android.huihui.view.activity;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.qf.android.huihui.R;

public class ExitActivity extends AppCompatActivity {
    private SharedPreferences sharedPreferences;
    private SharedPreferences.Editor edit;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_exit);
        sharedPreferences = getSharedPreferences("isLogin", MODE_PRIVATE);
        edit = sharedPreferences.edit();
    }

    public void exitClick(View view) {
       edit.putBoolean("isLogin",false);
        edit.commit();
        startActivity(new Intent(this,PersonalActivity.class));
        finish();
    }
}
